package org.example01.mapper;

import org.apache.ibatis.annotations.Param;
import org.example01.po.Product;
import org.example01.vo.QueryVo;

import java.util.HashMap;
import java.util.List;

public interface ProductMapper {
    Product selectByPid(int pid);
    List<Product> selectByPname(String pname);
    List<Product> selectByCondition(QueryVo queryVo);
    List<Product> selectByPriceAndCategory(HashMap<String,Object> map);
    List<Product> selectByParams(@Param("productPrice") double price,@Param("productCategory") String category);
    List<Product> selectByParamsMap(@Param("condition") HashMap<String,Object> map);
    List<Product> selectByResultMap(String category);
}
